<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/5/5 0005
  Time: 18:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <script src="${pageContext.request.contextPath}/resources/js/jquery.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js" type="text/javascript"></script>

    <script src="${pageContext.request.contextPath}/resources/js/utils.js" type="text/javascript"></script>
    <script>
        $(document).ready(function () {
            $("#CssStudentLeader").attr("class","active");
        });
    </script>
</head>
<body>
<jsp:include page="/jsp/teacher/top.jsp"/>
<div class="container">
    <div class="row clearfix">
        <jsp:include page="/jsp/teacher/class/class_title.jsp"/>
    <div class="col-md-10 column" style="margin-top: 50px">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>职位</th>
                <th>学号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>QQ</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${studentLeader}" var="student">
                <tr>
                    <td>${student.student_duty}</td>
                    <td>${student.student_id}</td>
                    <td>${student.student_name}</td>
                    <td>${student.student_sex}</td>
                    <td>${student.student_qq}</td>
                    <td>
                        <div class='btn-group  btn-group-xs' >
                            <button onclick="delStudent('${student.student_id}')" class='btn  btn-warning' value="${student.student_id}">删除</button>
                            <button onclick="studentDetail('${student.student_id}')" class='btn  btn-info' value="${student.student_id}">详情</button>

                        </div>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</table>
    </div>
</div>

<p style="text-align: center"><button onclick="exportExcel('studentLeader')" class="btn btn-primary">导出班干信息</button></p>
</body>

</html>
